package com.kgc.scd.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created On : 2022/6/18.
 * <p>
 * Author     : 98730
 * <p>
 * Description: SelectSeckillOrder
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SelectSeckillOrder {

    /**
     * 订单号
     */
    private String itemOrderid;

    /**
     * 购买数量
     */
    private Integer itemNum;

    /**
     * 秒杀商品库存
     */
    private Integer seckillProstock;

    /**
     * 订单用户id
     */
    private String orderUid;

    /**
     * 秒杀开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    private Date seckillStarttime;

    /**
     * 秒杀结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    private Date seckillEndtime;

    /**
     * 秒杀活动名字
     */
    private String seckillName;

    /**
     * 秒杀商品价格
     */
    private double seckillPrice;

}
